package com.sdleyou.treepro.common.model.convert;

import com.sdleyou.treepro.common.model.dao.MapDO;
import com.sdleyou.treepro.common.model.vo.MapVO;

public class MapDO2MapVOConverter {
    public static MapVO convert(MapDO mapDO) {
        MapVO mapVO = new MapVO();
        mapVO.setName(mapDO.getBaseName());
        mapVO.setIcon(mapDO.getBaseIcon());
        mapVO.setImage(mapDO.getBaseImage());
        mapVO.setBaseId(mapDO.getBaseId());
        mapVO.setIsShow(mapDO.getIsShow());
        mapVO.setStatus(mapDO.getStatus());
        return mapVO;
    }
}